package com.tanjun.mallservice.apiservice.enums.plu;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 商品类型枚举
 */
@AllArgsConstructor
@Getter
public enum PluTypeEnum {
    MALL(1, "线上商品"),
    GIFT(2, "赠品"),
    SHOW(3, "展示商品");
    @JsonValue
    private Integer type;
    private String typeName;

    /**
     * 枚举数据库存储值
     */
    public Integer getValue() {
        return this.type;
    }
}
